<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=., initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box">
        <input type="text" id="text">
    </div>
    <script>
        const box = document.getElementById('box')
        const textInput = document.getElementById('text');
        // text.onclick = function(e) {
        //     console.log('onclick')
        // }
        text.addEventListener('click',function() {
            console.log('input click')
        },true)
        box.addEventListener('click',function() {
            console.log('BOX click')
        },true)
        text.onfocus = function(e) {
            console.log('onfocus')
        }
        text.onmovedown = function(e) {
            console.log('onmovedown')
        }
        text.onmoveseener = function(e) {
            console.log('onmoveseener')
        }
    </script>
</body>
</html>